
package ${packageName};

<#list imports as import>
import ${import};
</#list>

/**
* @version V1.0
* ${sourceTableDesc}:${sourceTable} 运用于控制器层(暴露给前端接口调用)查询参数载体模型类.
* @ClassName: ${underlineToCamel(sourceTable?lower_case,true?string)}Param
* @Description: ${sourceTableDesc}:${sourceTable} 运用于控制器层(暴露给前端接口调用)查询参数载体模型类.
* @author: ${author}
* @date:   ${.now}
* @Copyright: Copyright (c) ${.now?string('yyyy')}
*/
@ApiModel("${sourceTableDesc} 查询参数")
public class ${underlineToCamel(sourceTable?lower_case,true?string)}Param implements Serializable {
<#list columns as col>
    <#if (col.columnComment)?length gt 0>
    // ${col.columnComment}
    @ApiModelProperty(value = "${col.columnComment}" ,dataType="${col.dataType}(${col.length!})")
    <#else >
    // ${col.columnName}
    @ApiModelProperty(value = "${col.columnName}" ,dataType="${col.dataType}(${col.length!})")
    </#if>
    private ${getDataType(col.dataType)} ${underlineToCamel(col.columnName?lower_case,false?string)};
</#list>

<#list columns as col>

    public ${getDataType(col.dataType)} get${(col.columnName ? index_of('_') == 1) ? string (underlineToCamel(col.columnName?lower_case,false?string),underlineToCamel(col.columnName?lower_case,true?string))}(){
        return this.${underlineToCamel(col.columnName?lower_case,false?string)};
    }
    public void set${(col.columnName ? index_of('_') == 1) ? string (underlineToCamel(col.columnName?lower_case,false?string),underlineToCamel(col.columnName?lower_case,true?string))}(${getDataType(col.dataType)} ${underlineToCamel(col.columnName?lower_case,false?string)}){
        this.${underlineToCamel(col.columnName?lower_case,false?string)} = ${underlineToCamel(col.columnName?lower_case,false?string)};
    }
</#list>

    public ${underlineToCamel(sourceTable?lower_case,true?string)}Param(){
    }

    @Override
    public String toString(){
        return " ${underlineToCamel(sourceTable?lower_case,true?string)}Param ["
        <#list columns as col>
            <#if col_has_next>
                +" ${underlineToCamel(col.columnName?lower_case,false?string)} = " +${underlineToCamel(col.columnName?lower_case,false?string)} +" ,"
            <#else>
                +" ${underlineToCamel(col.columnName?lower_case,false?string)} = " +${underlineToCamel(col.columnName?lower_case,false?string)}
            </#if>
        </#list>
                +" ]";
    }


}